<?php

//后台首页功能
    namespace admin\controller;
    use \core\Controller;

    class IndexController extends Controller{

        //显示首页数据
        public function index(){
//            获取用户数量
            $u=new \admin\model\UserModel();
            $const=$u->getCounts();
            //开启session
            @session_start();
            $this->assign('const',$const);
            $this->display('index.html');
        }
    }
